//import { JSONFilePreset } from 'lowdb/node'
import {sendEmail} from '../../common/email.js'

function rand(min,max) {
    return Math.floor(Math.random()*(max-min))+min;
}
export async  function test(req, res) {
    console.log('===============')
    const code = rand(100000,999999)+''
    const  r =await sendEmail('phoenics@126.com',code)
    console.log(r)
    res.json({t:0,d:code});
}
